import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'orderTask-'

export default {
  path: '/orderTask',
  name: 'orderTask',
  auto: ['order'],
  redirect: {
    name: `${pre}LuRuOrder`
  },
  meta: { ...meta, title: '订单管理' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'PeiTaiSheZi',
      name: '41600',
      meta: {
        ...meta,
        title: '标识物管理'
      }
      // component: () => import('@/pages/orderTask/PeiTaiSheZi')
    },
    {
      path: 'LuRuOrder',
      name: '41200',
      auto: ['order'],
      meta: {
        ...meta,
        title: '订单维护'
      }
      // component: () => import('@/pages/orderTask/LuRuOrder')
    },
    {
      path: 'DiaoDuOrder',
      name: '41300',
      meta: {
        ...meta,
        title: '订单调度'
      }
      // component: () => import('@/pages/orderTask/DiaoDuOrder')
    },
    {
      path: 'GaiFangShangChe',
      name: '41400',
      meta: {
        ...meta,
        title: '改纺上车'
      }
      // component: () => import('@/pages/orderTask/GaiFangShangChe')
    },
    {
      path: 'gongYiTiaoZheng',
      name: `41700`,
      meta: {
        ...meta,
        title: '工艺调整'
      }
      // component: () => import('@/pages/orderTask/gongYiTiaoZheng')
    },
    // {
    //   path: 'KaiGongYiDan1',
    //   name: `${pre}KaiGongYiDan1`,
    //   meta: {
    //     ...meta,
    //     title: '开工艺单'
    //   },
    //   // component: () => import('@/pages/orderTask/KaiGongYiDan1')
    // },
    // {
    //   path: 'KaiGongYiDan2',
    //   name: `${pre}KaiGongYiDan2`,
    //   meta: {
    //     ...meta,
    //     title: '开工艺单2'
    //   },
    //   // component: () => import('@/pages/orderTask/KaiGongYiDan2')
    // },
    // {
    //   path: 'KaiHeGeDan',
    //   name: `${pre}KaiHeGeDan`,
    //   meta: {
    //     ...meta,
    //     title: '开合格单'
    //   },
    //   // component: () => import('@/pages/orderTask/KaiHeGeDan')
    // },
    // {
    //   path: 'GenZongOrder',
    //   name: `${pre}GenZongOrder`,
    //   meta: {
    //     ...meta,
    //     title: '跟踪订单'
    //   },
    //   // component: () => import('@/pages/orderTask/GenZongOrder')
    // },
    {
      path: 'WanJieOrder',
      name: '41500',
      meta: {
        ...meta,
        title: '订单跟踪'
      }
      // component: () => import('@/pages/orderTask/WanJieOrder')
    }
    // {
    //   path: 'DiaoDuChaXun',
    //   name: `${pre}DiaoDuChaXun`,
    //   meta: {
    //     ...meta,
    //     title: '调度查询'
    //   },
    //   // component: () => import('@/pages/orderTask/DiaoDuChaXun')
    // }
  ]
} as AppRouteRecord
